<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var arr=[18,61,43,67,27,53];
    localStorage.setItem('sz',JSON.stringify(arr))
    // localStorage.removeItem('sz')

    //从本地存储取出数据
    var aa=localStorage.getItem('sz')
    console.log(JSON.parse(aa));
    
</script>